{extend name="admin/public:layout" /}
{block name="title"}会员管理{/block}
{block name="head"}{/block}
{block name="body"}
<div class="wrapper wrapper-content">
    <div class="ibox">
        <div class="ibox-title">
            <ol class="breadcrumb">
                <li><i class="fa fa-hand-o-right"></i> <a href="{:url('index')}"> 会员管理</a></li>
                <li class="active">添加会员</li>
            </ol>
        </div>
        <div class="ibox-content">
            <form method="post" class="form-horizontal" id="form">
                <div class="form-group">
                    <label class="col-sm-2 control-label Validform_label">用户名</label>
                    <div class="col-sm-4">
                        <input type="text" class="form-control" placeholder="请输入用户名"
                               name="member_name" value="" datatype="*" />
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label Validform_label">手机号</label>
                    <div class="col-sm-4">
                        <input type="text" class="form-control" placeholder="请输入手机号"
                               name="member_mobile" value="" datatype="m" />
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label Validform_label">用户密码</label>
                    <div class="col-sm-4">
                        <input type="password" class="form-control" placeholder="请输入用户密码"
                               name="member_pass" value="" datatype="*"/>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label Validform_label">姓名</label>
                    <div class="col-sm-4">
                        <input type="text" class="form-control" placeholder="请输入姓名"
                               name="member_truename" value="" />
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label Validform_label">会员头像</label>
                    <div class="col-sm-4">
                        <p class="form-control-static">
                            {:widget('common/Form/singleImg',['member_avatar','',-2])}
                        </p>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label Validform_label">性别</label>
                    <div class="col-sm-4">
                        <label class="radio-inline i-checks">
                            <input type="radio" name="member_sex" value="0" /> 保密
                        </label>
                        <label class="radio-inline i-checks">
                            <input type="radio" name="member_sex" value="1" checked /> 男
                        </label>
                        <label class="radio-inline i-checks">
                            <input type="radio" name="member_sex" value="2" /> 女
                        </label>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label Validform_label">状态</label>
                    <div class="col-sm-4">
                        <label class="radio-inline i-checks">
                            <input type="radio" name="member_status" value="1"> 正常
                        </label>
                        <label class="radio-inline i-checks">
                            <input type="radio" name="member_status" value="0" checked> 禁用
                        </label>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label Validform_label">名片职务</label>
                    <div class="col-sm-4">
                        <input type="text" class="form-control" placeholder="请输入职务"
                               name="member_duties" value="" />
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-2 control-label Validform_label">名片电话</label>
                    <div class="col-sm-4">
                        <input type="text" class="form-control" placeholder="请输入电话"
                               name="member_tel" value="" />
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-10 col-sm-offset-2">
                        <button class="btn btn-primary" type="button" id="btnSub">保存内容</button>
                        <a href="{:url('User/index')}" class="btn btn-white">取消</a>
                        <span id="validError"></span>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
{/block}
{block name="script"}
<script type="text/javascript">
    $(function () {
        iCheck();
        formatDate();
        ajaxSubForm('#btnSub');
    })
</script>
{/block}